// import $max from '@/utils/MaxStat_wx'
import  {IMGURL} from '@/config'
export default {
  data() {
    return {
      IMGURL
    }
  },
  onShareAppMessage(res) {
    let share = {
      title:'默认分享',
      path: 'pages/index/index',
      desc: '默认分享默认分享',
      imageUrl:'默认图片',
      success(res) {
        uni.showToast({
            title: '分享成功'
        })
      },
      fail(res) {
        uni.showToast({
            title: '分享失败',
            icon: 'none'
        })
      }
    }
    if(this.maxShareAppMessage){
      share = this.onShareMessage()
    }
    return share
    // let url =$max.shareUrl(this.share.path)//改变分享链接
  }
}
